Ubuntu 16.04
Sponsored Link

OpenStack Ocata : Configure Cinder#2 (Storage Node)
2017/03/16
 
Install and Configure OpenStack Block Storage (Cinder).
This example is based on the emvironment like follows.
     ------------+--------------------------------+--------------------------------+------------
                 |                                |                                |
             eth0|10.0.0.30                   eth0|10.0.0.50                   eth0|10.0.0.51
     +-----------+-----------+        +-----------+-----------+        +-----------+-----------+
     |    [ Control Node ]   |        |    [ Storage Node ]   |        |    [ Compute Node ]   |
     |                       |        |                       |        |                       |
     |  MariaDB    RabbitMQ  |        |      Open vSwitch     |        |        Libvirt        |
     |  Memcached  httpd     |        |  L2,L3,Metadata Agent |        |      Nova Compute     |
     |  Keystone   Glance    |        |     Cinder-Volume     |        |        L2 Agent       |
     |  Nova API             |        |                       |        |                       |
     |  Neutron Server       |        |                       |        |                       |
     |  Cinder API           |        |                       |        |                       |
     +-----------------------+        +-----------------------+        +-----------------------+

[1] Install Cinder Volume.
root@storage:~#
apt-get -y install cinder-volume python-mysqldb
[2] Configure Cinder Volume.
root@storage:~#
mv /etc/cinder/cinder.conf /etc/cinder/cinder.conf.org

root@storage:~#
vi /etc/cinder/cinder.conf
# create new

[DEFAULT]
# define own IP address
my_ip = 10.0.0.50
state_path = /var/lib/cinder
enable_v1_api = True
enable_v2_api = True
auth_strategy = keystone
# RabbitMQ connection info
transport_url = rabbit://openstack:password@10.0.0.30
# Glance connection info
glance_api_servers = http://10.0.0.30:9292

# MariaDB connection info
[database]
connection = mysql+pymysql://cinder:password@10.0.0.30/cinder

# Keystone auth info
[keystone_authtoken]
auth_uri = http://10.0.0.30:5000
auth_url = http://10.0.0.30:35357
memcached_servers = 10.0.0.30:11211
auth_type = password
project_domain_name = default
user_domain_name = default
project_name = service
username = cinder
password = servicepassword

[oslo_concurrency]
lock_path = $state_path/tmp

root@storage:~#
chmod 644 /etc/cinder/cinder.conf

root@storage:~#
chown cinder. /etc/cinder/cinder.conf

root@storage:~#
systemctl restart cinder-volume
 
Tweet